package com.itheima.dao;


import com.github.pagehelper.Page;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<String> getAuthorityByUserId(@Param("id") Integer id);

    void add(Permission permission);

    Page<Permission> findByCondition(@Param("queryString") String queryString);

    Page<Permission> findPage(String queryString);

    Permission findById(Integer id);

    void edit(Permission permission);


    Long delete(int id);

}